package com.neusoft.demo.component;

import org.springframework.jms.annotation.JmsListener;

/**
 * @author zhouQF
 * @description ActivityMQ消费者
 * @date 2019/9/17
 */
//@Component
public class ActivityMQTopicConsumer {

    @JmsListener(destination = "myTopic", containerFactory="jmsListenerContainerTopic")
    public void receiveQueue(String msg) {
        System.out.println("myTopic接收到消息：" + msg);
    }
}
